package com.zilue.payment.gateway.mapper;

import com.zilue.payment.gateway.domain.RefundLogDO;
import org.apache.ibatis.annotations.Param;

/**
 * Created by ZD on 2017/5/22.
 */
//@Mapper
public interface RefundLogMapper {

    int updateStatusByPK(@Param("id") Long id, @Param("oldStatus") Integer oldStatus, @Param("newStatus") Integer newStatus);

    RefundLogDO queryByOutTradeNoAndOutRefundNo(@Param("outTradeNo") String outTradeNo,@Param("outRefundNo") String outRefundNo);

    long insert(RefundLogDO refundLogDO);

    int updateStatus(@Param("outTradeNo")String outTradeNo,@Param("outRefundNo") String outRefundNo, @Param("oldStatus")Integer oldStatus,@Param("newStatus") Integer newStatus);
}
